import { Component, OnInit } from '@angular/core';
import {flyInOut} from "../../utils/anim";
import { UserRegist } from './shared/user-regist.model';
import { UserRegistService } from './shared/user-regist.service';
import {User} from "../share/user.model";
import {userService} from "../share/user.service";
@Component({
	selector: 'user-regist',
	templateUrl: 'user-regist.component.html',
	providers: [UserRegistService],
	 animations: [
    flyInOut
  ],
   styleUrls:["user-regist.component.scss"]
})

export class UserRegistComponent implements OnInit {
	userRegist: UserRegist[] = [];
	user:User=new User();
	constructor(private userRegistService: UserRegistService,
				private userService:userService) { }

	ngOnInit() {
		this.userRegistService.getList().subscribe((res) => {
			this.userRegist = res;
		});
	}

	regist(){

	}
}